<#include "module/head.ftl">
    <section class="main-container">
        <div class="headertop"> 
            <figure class="centerbg centerbgHei">
                <div class="focusinfo">
                    <h1 class="title" data-text=" ${post.title!}">
                        ${post.title!}
                    </h1>
                </div>
                <div class="post-meta">
                    <div class="post-meta-wrap">
                        <img class="author-avatar" src="https://www.wsolo.xyz/upload/2021/06/headImg-964123b88930473fb755ad511d1eac35.jpg" alt="">
                        <span class="post-author">
                            <#if post.categories?? && post.categories?size gt 0>
                                <#list post.categories as category>
                                    <a href="${category.fullPath!}" class="post-category">
                                     <svg aria-hidden="true" ><use xlink:href="#icon-tag"></use></svg>
                                        · ${category.name!}
                                    </a>
                                </#list>
                            </#if>
                        </span>
                        <time class="published" datetime="2021-05-31">
                             发布: ${post.createTime?string("yyyy-MM-dd")}
                        </time>
                        <#if "${post.createTime}" != "${post.editTime}">
                            <time class="published"
                                    datetime="${post.editTime?string("yyyy-MM-dd")}">
                                最后编辑: ${post.editTime?string("yyyy-MM-dd")}</time>
                        </#if>
                        
                    </div>
                    
                </div>
            </figure>  
        </div>
        <!--  -->
            <div class="container makeDown" id="container">
			<div class="article-content content-container" id="gallery-content">
				<div id="original" style="display: none">${post.originalContent?replace("<", "&lt;")?replace(">", "&gt;")}</div>
				<div class="container mx-auto px-4 md-content mt-8 max-w-6xl tracking-wider md:leading-relaxed sm:leading-normal cn-pd ct-container loading" id="write"></div>
			</div>
		</div>
        <#--  内容/  -->
        </div>

        <!--  -->
        <#include "module/slider.ftl">
        </div>
    </section>
     <script src="${theme_base!}/source/js/main.js"></script>
     <script type="text/javascript">
        let openKatex = false;
        const katex_config = {
            delimiters:
                [
                {left: "$$", right: "$$", display: true},
                {left: "$", right: "$", display: false},
                {left: "\\(", right: "\\)", display: false},
                {left: "\\[", right: "\\]", display: true},
                ]
        };
        openKatex = true;
        // 是否开启代码高亮
        let enableCodeHighlight = false;
        let enableLineNumber = false;
        // 是否开启行号
        </script>
        <script data="https://www.wsolo.xyz/themes/bao" src="https://www.wsolo.xyz/themes/bao/source/js/main.js?ver=202011011234"></script>
        <script  src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.js" ></script>
        <script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/contrib/auto-render.min.js"></script>
        <script type="text/javascript">
        const loading = "https://www.wsolo.xyz/themes/bao/source/images/loading-45.svg";
        var photoList = ``;
        var photos = []
        if (photoList && photoList.trim() !== '') {
            if(photoList.endsWith(';')) {
            photoList = photoList.substring(0, photoList.length - 1);
            }
            photos = photoList.split(";");
        }
        // 默认收缩菜单
        var hideMenu = false;
        var autoNightMode = false
            autoNightMode = true;
        </script>
 <#include "module/foot.ftl">